apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: disable-psp-demo
rules:
- apiGroups:
  - policy
  resources:
  - podsecuritypolicies
  resourceNames:
  - privileged
  verbs:
  - use
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
    name: disable-psp-demo
subjects:
- kind: ServiceAccount
  name: default
  namespace: demo
roleRef:
   apiGroup: rbac.authorization.k8s.io
   kind: ClusterRole
   name: disable-psp-demo
